package top.sssd.auth.service.rolePermission;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sssd.auth.model.rolePermission.entity.RolePermission;
import top.sssd.auth.model.rolePermission.request.RolePermissionQueryReq;
import top.sssd.auth.model.rolePermission.request.RolePermissionSaveOrUpdateReq;
import top.sssd.auth.model.rolePermission.response.RolePermissionResp;

import java.io.Serializable;
import java.util.List;

public interface RolePermissionService extends IService<RolePermission> {

    Page<RolePermissionResp> queryPage(RolePermissionQueryReq rolepermissionQueryReq);

    List<RolePermissionResp> queryRolePermissionRespListByRolePermissionReq(RolePermissionQueryReq rolepermissionQueryReq);

    RolePermissionResp getRolePermissionRespById(Serializable id);

    Boolean saveRolePermissionReq(RolePermissionSaveOrUpdateReq rolepermissionSaveOrUpdateReq);

    Boolean updateRolePermissionReq(RolePermissionSaveOrUpdateReq rolepermissionSaveOrUpdateReq);
}

